These functions are used by format-specific graphics exporters when transcoding. Applications will not normally need to call these functions.
Asks whether the image source is in a form that can be read.
pascal ComponentResult GraphicsExportMayExporterReadInputData ( GraphicsExportComponent ci,
Boolean *mayReadInputData);
Some kinds of image source, such as files and handles, form a stream of bytes that can be read directly. Others, such as pictures and pixmaps, cannot. Format-specific graphics exporters usually cannot transcode if they cannot read the original data, so those exporters which implement CanTranscode will usually call GraphicsExportMayExporterReadInputData .
Returns the number of bytes of original image data that can be read.
pascal ComponentResult GraphicsExportGetInputDataSize (GraphicsExportComponent ci,
unsigned long *size);
pascal ComponentResult GraphicsExportReadInputData (GraphicsExportComponent ci,
void *dataPtr,
unsigned long dataOffset,
unsigned long dataSize);
| Previous | Chapter Contents | Chapter Top | Next |